Skip to content

Complete refactoring of code to block conversion logic to be config driven#4702

Closed
ebeetles wants to merge 1 commit intosugarlabs:masterfrom
ebeetles:config_driven_conversion
Closed

Complete refactoring of code to block conversion logic to be config driven#4702
ebeetles wants to merge 1 commit intosugarlabs:masterfrom
ebeetles:config_driven_conversion

Conversation

@ebeetles
Copy link
Collaborator

@ebeetles ebeetles commented Jun 8, 2025

Refactored code to use a JSON config: ast2blocks.json so that the logic behind converting code to blocks is as generic as possible.

Right now code to blocks has support for all rhythm, flow, boxes, number, boolean, and dictionary palette blocks. As well as some blocks from action, pitch and tone palettes. Adding a new block for support is now as simple as adding the blocks path and properties into the JSON configuration.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2025

✅ All Jest tests passed! This PR is ready to merge.

@walterbender
Copy link
Member

@ebeetles is the PR still relevant? Can we close it?

@ebeetles ebeetles closed this Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants